//
//  YUYAAllAreaListCell.m
//  com.yigu.yuya
//
//  Created by hxp on 16/3/9.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import "YAYIAllAreaListCell.h"

@implementation YAYIAllAreaListCell

- (void)awakeFromNib {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createViews];
    }
    return  self;
}

-(void)createViews{
    self.local = [UILabel new];
    self.local.textColor  = [UIColor colorWithRed:87/255.0 green:85/255.0 blue:85/255.0 alpha:1];
    self.local.font = [UIFont systemFontOfSize:font14];
    [self.contentView addSubview:self.local];
    
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    [self.local mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.contentView.mas_centerY);
        make.left.equalTo(@50);
        make.right.equalTo(@10);
        make.height.equalTo(@20);
    }];
    
}

@end
